<template>
  <div class="content">
    <com-crud-table ref="ecTable" v-bind="crudOptions"></com-crud-table>
  </div>
</template>

<script lang="ts" setup>
import { onMounted } from 'vue'
//这里处理配置项代码
import crudOptions from './config/crud'
import useDictStore from '@/store/modules/dict'
const setDict = useDictStore().setDict

//设置字典
onMounted(() => {
  let res: any[] = [
    { name: '男', value: 2, label: '男' },
    { name: '女', value: 1, label: '女' }
  ]
  setDict('dictSex', res) //设置字典
})
</script>
